home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
texttors
/
qhelpc
/
readme.bat
< prev
next >
Wrap
DOS Batch File
|
1993-03-01
|
2KB
|
68 lines
echo off
: ReadMe.Bat, 01 Mar 93, Rhg
SET PN=0
if not "%PN%"=="0" goto ENV
:LOOP
cls
if %PN%==6 goto SetVar
if not exist ReadMe.P%PN% goto ERROR
if %PN%==5 SET PN=6
if %PN%==4 SET PN=5
if %PN%==3 SET PN=4
if %PN%==2 SET PN=3
if %PN%==1 SET PN=2
if %PN%==0 SET PN=1
goto LOOP
:SetVar
SET PN=0
:Loop1
cls
if %PN%==6 goto preEND
type ReadMe.P%PN%
if %PN%==5 SET PN=6
if %PN%==4 SET PN=5
if %PN%==3 SET PN=4
if %PN%==2 SET PN=3
if %PN%==1 SET PN=2
if %PN%==0 SET PN=1
echo Press any key to continue ...
pause > nul
goto Loop1
:ERROR
echo ReadMe.Bat, 01 Mar 93, Rhg
echo.
echo ERROR ... can NOT find the ReadMe.P%PN% file.
echo ALL QHelpC source files MUST be on the drive
echo and in the sub-DIR that you are logged onto.
echo
:preEND
SET PN=
goto END
:ENV
cls
echo ReadMe.Bat, 01 Mar 93, Rhg
echo.
echo ERROR ! You do NOT have enough environmental space to
echo store required variables. 18 bytes are required.
echo.
echo You have two choices:
echo The 1st., and easiest, is to temporarly shorten your 'PATH' by 18 bytes.
echo After QHelpC has been installed, you can revert back to your normal 'PATH'.
echo.
echo The 2nd., and most desireable for future use, is to add a SHELL statement
echo to your Config.SYS file. Since the syntax ( # of bytes ), for the SHELL
echo statement is DOS-VER dependent, it is not given here. See your DOS manual.
echo.
echo
goto END
:end